Installing the server in silent mode
In silent mode, you specify the installation properties in a text file and then run the server installation without command-line prompts.
About this task
Procedure
-
Download and extract the installation files for HCL Launch.
These files are available for download from the HCL FlexNet Operations portal.
- If you are using a database other than Apache Derby, place the JAR file for the database in the lib/ext folder of the installation files.
-
Customize the installation by specifying the properties in the server installation properties file
If you do not specify a property, the default value is used. These properties are copied to the installed.properties file of the completed installation.
If you specify a path in a property on a Windows™ system, you must escape any backslash (\) characters that are in the path. For example, to set the install.server.dir property to C:\launch, specify install.server.dir=C\:\\launch. See java.util Class Properties.
Note: The server.initial.password needs to be specified or install will fail.component.name=HCL Launch component.directory=launch/server version=7.2.2.0.1130571 nonInteractive=true install.server.dir=/opt/launch/server install.java.home=/opt/IBM/ibm-java-i386-80 install.server.web.always.secure=Y install.server.web.host=myserver.example.com install.server.web.https.port=8443 install.server.web.ip=0.0.0.0 install.server.web.port=8080 database.type=derby hibernate.connection.username=launch hibernate.connection.password=password hibernate.connection.url=jdbc:derby://host-or-ip:11377/data database.derby.port=11377 license.server.url=27000@RCLServer.example.com server.initial.password=admin
- Save the file.
-
Specify the
-silent
flag when running the installer. Add the flag to the installation file with the commandinstall-server.bat -silent
on Windows™ or the command./install-server.sh -silent
on Linux™.V7.0 introduces new arguments to the
install-server.bat
andinstall-server.sh
.These scripts behave identically and take combinations of the following arguments:-silent -install-dir /path/to/install -java /path/to/jdk
They each correspond to properties ininstall.properties
, and if specified they will override them. Corresponding properties are as follows:Table 1. Argument Property Note -silent nonInteractive=true Running with -silent
and without an-install-dir
results in an error.-install-dir /path/to/dir install.server.dir=/path/to/dir Setting an install-dir
that already has server results in a server upgrade.-java /path/to/jdk install.java.home=/path/to/jdk Running with -java
for a server upgrade results in an error.
Results
If you install the server as a node in high-availability cluster, the installer loads the existing encryption keystore that is in the shared storage folder by using the default settings. If the default password is incorrect, you are prompted for the password. If after three attempts you do not enter the correct password, the installation process stops. If the keystore has more than one alias, you are prompted to specify an alias.
What to do next
- To specify a default agent, click General Settings, clear the Use Agent Tag For Integration check box. Then, select an agent in the Agent for Version Imports list. Then, at the bottom of the page, click Save. and under
- To specify a default agent tag, click General Settings, clear the Use Agent Tag For Integration check box. Then, select an agent tag in the Agent Tag for version imports list. Then, at the bottom of the page, click Save. If no tags are listed, add a tag to one or more agents on the server. and under
If you see "Out of memory" errors, increase the amount of memory that is available to the HCL Launch service. See Increasing the amount of memory that is available to the server.
[echo] waiting for db to start - 6 seconds remaining
[echo] waiting for db to start - 3 seconds remaining
[echo] Could not start database
[echo] Stopping embedded database ...
[java] Tue Feb 04 09:11:25 EST 2014 : Could not connect
to Derby Network Server on host localhost, port 11377:
Connection refused
If
you see this error, you must change the default security settings for the Java™ installation on the server:- Open the Java™ security policy file in a text editor. If you are using a Java™ Runtime Environment (JRE), this file is at the location JAVA_HOME/lib/security/java.policy, where JAVA_HOME is the base folder of the Java™ installation. If you are using a Java™ Development Kit (JDK), the file is at the location JAVA_HOME/jre/lib/security/java.policy.
- In the java.policy file, in the section that is labeled
// default permissions granted to all domains
, within thegrant{}
block, add the following code:permission java.net.SocketPermission "localhost:11377", "listen";
- Run the installation program again.